﻿@model WarSpot.WebFace.Models.Stage

<div>	
<div class="display-label"><b>@Html.LabelFor(m => m.State): </b>@Html.DisplayFor(m => m.State)</div>
<div class="display-label"><b>@Html.LabelFor(m => m.StartTime): </b>@Html.DisplayFor(m => m.StartTime)</div>
	
  @if(Model.Games.Count > 0)
  {
		<table>
			<tr><td><div class="display-label">@Html.LabelFor(m => m.Games)</div></td></tr>
    
			@Html.DisplayFor(m => m.Games)
			@foreach (var m in Model.Games)
			{/*
			string s = "";
      if (m.Replay == null)
      {
        s = "В очереди";
      }
      else
      {
        s = Html.ActionLink("Скачать", "Download", "Games", new { id = m.Id }).ToHtmlString();
      }
      <tr>
        <td>
          @Html.ActionLink(m.Name, "Details", "Games", new { id = m.Id })
        </td>
        <td>
          @m.CreationTime
        </td>
        <td>
          @Html.Raw(s)
        </td>
      </tr>	*/
			}
		</table>
    }
    else
	{
		<div>Игр еще нет</div>
	}
</div>
